/* neovision 摄影区逻辑代码
---------------------------------------------------------------------------*/

var banner07LeftImg = document.getElementsByClassName("banner07-left-img")[0];
var banner09RightImg = document.getElementsByClassName("banner09-right-img")[0];
var banner10RightImg = document.getElementsByClassName("banner10-right-img")[0];
var banner12RightImg = document.getElementsByClassName("banner12-right-img")[0];

myAddEvent(window, 'scroll', function (params) {
    console.log(getScrollOffset().y);
    if (getScrollOffset().y > 4700) {
        banner07LeftImg.style.marginTop = "100px";
    }

    if (getScrollOffset().y > 6770) {
        banner09RightImg.style.marginLeft = "0";
    }

    if (getScrollOffset().y > 8070) {
        banner10RightImg.style.marginLeft = "0";
    }

    if (getScrollOffset().y > 10611) {
        banner12RightImg.style.marginLeft = "-8px";
    }
})